//
//  WYCAboutMeController.m
//  51信用卡
//
//  Created by 中企互联 on 2017/11/2.
//  Copyright © 2017年 中企互联. All rights reserved.
//

#import "WYCAboutMeController.h"
#import "PrefixHeader.pch"
@interface WYCAboutMeController ()

@end

@implementation WYCAboutMeController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //setNav
    [self setupNav];
    
    
    //创建界面
    [self setupCreat];
}
- (void)setupCreat{

    UIImageView * logoimageView = [[UIImageView alloc] init];
    logoimageView.frame = CGRectMake(ScreenWidth / 2 - 90, NavHeight+40, 181, 121);
    logoimageView.image = [UIImage imageNamed:@"图层12"];
//    logoimageView.backgroundColor = [UIColor redColor];
    [self.view addSubview:logoimageView];
    
    
    UIImageView * textimageView = [[UIImageView alloc] init];
    textimageView.frame = CGRectMake(ScreenWidth / 2 - 120 * px, CGRectGetMaxY(logoimageView.frame) + 20 * px, 240 * px, 80 * px);
    textimageView.image = [UIImage imageNamed:@"58卡秘书"];
    [self.view addSubview:textimageView];
    
    NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
    
    // 获取App的版本号
    NSString *appVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];
    WYCLog(@"=======%@",appVersion);
    
    
    UILabel * appVersionlabel = [[UILabel alloc] init];
    appVersionlabel.frame = CGRectMake(0,CGRectGetMaxY(textimageView.frame) + 100 * px,ScreenWidth,60 * px);
    appVersionlabel.text = [NSString stringWithFormat:@"58卡秘书 %@",appVersion];
    appVersionlabel.textColor = WYCRGBColor(167, 175, 179);
    appVersionlabel.font = [UIFont systemFontOfSize:40 * px];
    appVersionlabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:appVersionlabel];
 UITextView  *   proView = [[UITextView alloc]initWithFrame:CGRectMake(30, appVersionlabel.frame.size.height+appVersionlabel.frame.origin.y+20, ScreenWidth-60 , 200)];
    proView.backgroundColor = [UIColor whiteColor];
    proView.font = [UIFont systemFontOfSize:14.f];
    proView.textColor = [UIColor lightGrayColor];
    proView.textAlignment = NSTextAlignmentLeft;
    proView.editable = NO;
    proView.text = @"简介：58卡秘书信用卡智能管家是一款具有智能管理信用卡账单功能的APP。它通过智能解析信用卡电子账单，以及持卡人的个人财务状况，来实现持卡人用卡信息管理和个人信用与借款智能化自动还款功能的应用。它利用持卡人少量的资金，根据持卡人设置的时间，来实现智能还款。从而避免了持卡人因信用卡账单逾期，而造成的信用不良记录。还可通过APP快速申请信用卡和各种贷款。我们的使命是：“解放卡奴，成就中介，服务银行”！";
    [self.view addSubview:proView];
    
}
#pragma make ------->>nav界面修改
- (void)setupNav{
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"关于我们";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setBarTintColor:wycMain];
    
}

@end
